﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Budget.WCF;
using Budget.DataAccess;

namespace Budget.UnitTests.WCF.DIObjects
{
	public class DIMthServiceWrapper
	{
		private IMthService svc;

		public DIMthServiceWrapper( IMthService service )
		{
			this.svc = service;
		}

		public Mth GetMthById(int ID)
		{
			return svc.GetMthById(ID);
		}

		public IList<Mth> GetAll()
		{
			return svc.GetAll();
		}

		public void Save( Mth month )
		{
			svc.Save( month );
		}

		public bool DoesMonthYearExist(int month, int year )
		{
			return svc.DoesMonthYearExist( month, year );
		}

		public Mth GetByMonthAndYear( int month, int year )
		{
			return svc.GetByMonthAndYear( month, year );
		}
	}
}
